package com.fjec.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 011.用户登录日志表
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
@TableName("sys_user_login_log")
public class SysUserLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 用户Id
     */
    @TableField("UserId")
    private Long userId;

    /**
     * 应用类型 1=水果平台小程序
2=运维系统
     */
    @TableField("AppType")
    private Integer appType;

    /**
     * 登录时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Integer getAppType() {
        return appType;
    }

    public void setAppType(Integer appType) {
        this.appType = appType;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SysUserLoginLog{" +
            "id=" + id +
            ", userId=" + userId +
            ", appType=" + appType +
            ", createTime=" + createTime +
        "}";
    }
}
